<div>
  <div style="overflow: auto;" class="GridView">
    <div style="overflow: auto;" class="GridView" id="SearchFilterListView">
      <div>
        <div style="" class="TitleBarView">
          <h1><?php echo $this->navText;?></h1>
        </div>
      </div>
      <div>
        <div style="overflow: auto;" class="SearchView SearchView ModelView ConfigurableMetadataView MetadataView" id="AccountsSearchView">
          <div class="wide form">
              <table>
                <colgroup>
                <col style="width:20%">
                <col style="width:30%">
                <col style="width:20%">
                <col style="width:30%">
                </colgroup>
                <tbody class="search-view-bottom-panel">
                  <tr>
                    <td colspan="4">
                    &nbsp; 
                    <?php 
                    	echo CHtml::link('新建书籍', array('create'));
                    ?>
                     | 
                    <?php 
                    	echo CHtml::link('查看前台首页', array('/site/index'), array('target'=>'_blank'));
                    ?>
                     |  
                    <?php 
                    	echo CHtml::link('清空所有缓存', array('flushCache'));
                    ?>
                    </td>
                  </tr>
                </tbody>
              </table>
          </div>
        </div>
      </div>
      <div>
        <div style="overflow: auto;" class="SecuredListView ListView ModelView ConfigurableMetadataView MetadataView" id="AccountsListView">
          <div class="view-toolbar"></div>
          <div id="list-view" class="cgrid-view">
            <table class="items">
              <thead>
                <tr>
                  <th id="list-view_c1" style="width:5%;">BookId</th>
                  <th id="list-view_c2" style="width:25%;">中文名称</th>
                  <th id="list-view_c3" style="width:25%;">英文</th>
                  <th id="list-view_c4" style="width:25%;">标识</th>
                  <th id="list-view_c5" style="width:20%;">操作</th>
                </tr>
              </thead>
              <tbody>
              	<?php if (is_null($books)) :?>
                <tr>
                  <td colspan="5"><span class="empty">无记录</span></td>
                </tr>
                <?php else :?>
                <?php foreach($books as $book) :?>
	                <tr>
	                  <td><?php echo CHtml::encode($book->moduleId);?></td>
	                  <td><?php echo CHtml::link($book->bookName, 
	                  								array('/book/default/index', 
	                  											'bookFlag'=>$book->nameFlag
	                  										),
	                  							array('target'=>'_blank')
	                  						);?>
	                  </td>
	                  <td><?php echo CHtml::encode($book->originalBookName);?></td>
	                  <td><?php echo CHtml::encode($book->nameFlag);?></td>
	                  <td>
	                  <?php 
		                  echo CHtml::link('修改书籍', array('book/update', 'bookFlag'=>$book->nameFlag));
		              ?>
	                   | 
	                  <?php 
		                  echo CHtml::link('章节管理', array('chapter/index', 'bookFlag'=>$book->nameFlag));
		              ?>
	                   | 
	                  <?php 
		                  echo CHtml::link('评论管理', array('comment/index', 'bookFlag'=>$book->nameFlag));
		              ?>
		              </td>
	                </tr>
	            <?php endforeach; ?>
                <?php endif;?>
                
              </tbody>
            </table>
            <div title="/index.php?r=accounts/default" style="display:none" class="keys"></div>
          </div>
          <input type="hidden" id="list-view-selectedIds" name="list-view-selectedIds" value="">
          <input type="hidden" id="list-view-selectAll" name="list-view-selectAll" value="">
        </div>
      </div>
    </div>
  </div>
</div>
